package com.hgvip.controller;

import com.hgvip.common.entity.ResponseData;
import com.hgvip.service.KaoLaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by arnold.zhu on 2017/9/20.
 */
@RestController
@RequestMapping("/kaola")
public class KaoLaController {

    @Autowired
    private KaoLaService kaoLaService;

    @RequestMapping("/syncAllGoods")
    public ResponseData syncAllGoods() {
        kaoLaService.syncAllGoods();
        return new ResponseData(200, "sync success!");
    }

}
